package com.example.LibrarySystem.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;


/**
 * 库存
 */

@TableName("inventory")
public class Inventory {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Integer bookId;
    private Integer number;

    public Inventory() {
    }

    public Inventory(Integer id, Integer bookId, Integer number) {
        this.id = id;
        this.bookId = bookId;
        this.number = number;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getBookId() {
        return bookId;
    }

    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    @Override
    public String toString() {
        return "Inventory{" +
                "id=" + id +
                ", bookId=" + bookId +
                ", number=" + number +
                '}';
    }
}
